package com.springup.trade.exception;

public enum Error {
    BUY_UPDATE_ERROR(400001, "无持仓记录，不允许更新操作"),
    BUY_CANCEL_ERROR(400002, "无持仓记录，不允许取消操作"),
    SELL_UPDATE_ERROR(400003, "无卖出记录，不允许更新操作"),
    SELL_CANCEL_ERROR(400004, "无卖出记录，不允许取消操作");

    private final int id;
    private final String name;

    private Error(int id, String name){
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}
